/*
 * @Author: ckk
 * @Date: 2022-10-24 22:26:55
 * @LastEditors: ckk
 * @LastEditTime: 2022-10-24 23:46:26
 * @Description: sm3
 */
import sm3 from 'sm-crypto';
export function sm3SignTokenParam (param) {
  const data = 'app_id=' + param.app_id + '&app_secret=' + param.app_secret + '&code=' + param.code + '&grant_type=authorization_code' + '&time=' + param.time + '&uuid=' + param.uuid;
  console.log(data, 'data');
  return sm3.sm3(data);
}
export function sm3SignUserBaseInfo (param) {
  const data = 'app_id=' + param.app_id + '&app_secret=' + param.app_secret + '&auth_token=' + param.auth_token + '&time=' + param.time + '&uuid=' + param.uuid;
  return sm3.sm3(data);
}
